import Vue from 'vue'
// 导入根组件
import App from './App.vue'
// 导入路由
import router from './router'
// 导入仓库
import store from './store'

// 引入 normalize.css
import 'normalize.css'

// 全局样式，一定放在所有样式文件的最后面
import '@/assets/styles/global.scss'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import Vant from '@/plugins/vant.js'
import filters from '@/filters'
import directives from './directives'
// import VueVirtualScroller from 'vue-virtual-scroller'
// import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
import liteVirtualList from 'lite-virtual-list'

Vue.use(liteVirtualList)

Vue.use(Vant)
Vue.use(filters)
Vue.use(directives)
// Vue.use(VueVirtualScroller)
Vue.use(ElementUI)

new Vue({
  router, // 注入路由
  store, // 注入仓库
  render: h => h(App) // 渲染根组件
}).$mount('#app') // 渲染根组件到id=app的div中去
